package jdk;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.function.Consumer;

interface MyMath{
	public abstract int add(int a,int b);
}
public class LambdaDemo {

	public static void main(String[] args) {
		
		  MyMath mm3 = (a,b)->a+b;
		  System.out.println(mm3.add(22, 24));
		  List<String> list = Arrays.asList("abc","www","ddd","yyy","uuu");
		  list.forEach((t)->System.out.println(t));
		  list.sort((String o1, String o2) -> o2.compareTo(o1));
		  System.out.println(list);
	}

}
